package com.bjb.vr.server.config;

import com.bjb.vr.server.properties.ServerInfoProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @version 1.0.0
 * @author: HuJingBo
 * @time: 2022/6/13 10:09
 */
@Order(2)
@Slf4j
@Component
public class InitServerInfoStarter implements CommandLineRunner {

    @Resource
    private ServerInfoProperties serverInfoProperties;

    @Override
    public void run(String... args) throws Exception {
        log.info("当前服务部署方式: {}", serverInfoProperties.getDeployMode());
    }
}
